set ylabel "Time per iteration (ms)"
set xlabel "n"
set title "OpenMP performance scaling (6 threads)"
set logscale x 2
set logscale y 2
set pointsize 0.8
set key top left
set size 0.6, 0.6
#set lmargin 0
#set size square
set xrange [500:128000];
set yrange [.1:100];


set xtics 4
set mxtics 4
set ytics 4
set mytics 4
set format y "%.2g"

set style line 1 lt 1 lc rgb "#6B8E23" lw 3 pt 5 ps .5
set style line 2 lt 2 lc rgb "#003344" lw 3 pt 6 ps .5
set style line 3 lt 3 lc rgb "#4682B4" lw 3 pt 4 ps .5
set style line 4 lt 2 lc rgb "#800000" lw 3 pt 2 ps .5
set style line 5 lt 1 lc rgb "#008B8B" lw 3 pt 1 ps .5
set style line 6 lt 1 lc rgb "#900000" lw 3 pt 7 ps .5
set style line 7 lt 2 lc rgb "gray" lw 1 pt 1

set grid xtics mxtics ytics mytics ls 7

set terminal postscript eps enhanced color "NimbusSanL-Regu" 12 
set output "openmp.eps"


plot "openmp.dat" using 1:2 ls 1 with linespoints title 'original', \
     "openmp.dat" using 1:3 ls 2 with linespoints title 'binned'
